﻿/* 变量 */
var forGoto = "MapIframe/IframeForGoto.html";

//地图导航
var contactsCallback_forgoto = myApp.onPageInit('newIframe', function (page) {
    if (page && page.url) {
        var index = page.url.indexOf('?');
        var param = '';
        if (index > 0) {
            param = page.url.substr(index);
        }
        var nurl = "/Common/website/view/map/mapGoto.html" + param;
        $("#mapIframeForGoto").attr("src", nurl);
    }
});

/* 初始化  */
function initData() {
    var href = window.location.href;
    if (href.indexOf(forGoto) > -1) {
        contactsCallback_forgoto.trigger();
    }
}

initData();